package com.sansan.qiangji.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SYSTEM_ERROR("EX0001", "系统异常"),
    PARAM_ERROR("EX0002", "参数异常"),
    JSON_FORMAT_ERROR("E0003", "JSON格式异常"),
    PARAM_TYPE_ERROR("E0004", "参数类型异常"),
    UNIDENTIFIED("EX0005", "身份异常"),
    DATE_FORMAT_ERROR("EX006", "日期转换异常"),
    USER_REGISTER("EX0007", "用户注册失败"),
    HTTP_TYPE_ERROR("EX0008", "传参方式异常"),
    USER_NOT_EXIST("EX0009", "用户不存在"),
    USER_PASSWORD_ERROR("EX0010", "用户密码错误"),
    MENU_EXIST("EX0011", "菜单已存在"),
    MENU_ROOT_NOT_EXIST("EX0012", "根目录不存在"),
    PARENT_MENU_NOT_EXIST("EX0013", "上级菜单不存在"),
    USER_DELETE_ERROR("EX0014", "用户删除失败"),
    USER_FREEZE("EX0015", "用户已被冻结"),
    CHANGE_USER_STATUS_ERROR("EX0016", "更改用户状态失败"),
    USER_IS_EXIST("EX0017", "用户已存在"),
    MENU_NOT_EXIST("EX0018", "菜单不存在"),
    CHANGE_MENU_STATUS_ERROR("EX0019", "更改菜单状态失败"),
    MENU_EDIT_ERROR("EX0020", "编辑菜单失败"),
    MENU_DELETE_ERROR("EX0021", "删除菜单失败"),
    MENU_PARENT_NOT_EXIT("EX0022", "找不到菜单的父菜单"),
    ROOT_MENU_CAN_NOT_DELETE("EX0023", "根目录不可删除"),
    CREATE_MENU_ERROR("EX0024", "创建菜单失败"),
    ROLE_EXIST("EX0025", "角色已存在"),
    HTTP_REQUEST_ERROR("EX0026", "请求方式异常"),
    ROLE_NOT_EXIST("EX0027", "角色不存在"),
    ROLE_DELETE_ERROR("EX0028", "删除角色失败"),
    CHANGE_ROLE_STATUS_ERROR("EX0029", "更改角色状态失败"),
    POWER_EXIST("EX0030", "权限名或权限路径已存在"),
    POWER_NOT_EXIST("EX0031", "权限不存在"),
    CHANGE_POWER_STATUS_ERROR("EX0032", "更改角权限状态失败"),
    POWER_EDIT_ERROR("EX0033", "编辑权限失败"),
    ROLE_MENU_POWER_EDIT_ERROR("EX0034", "角色菜单权限编辑失败"),
    ROLE_POWER_EDIT_ERROR("EX0035", "角色权限编辑失败"),
    USER_POWER_EDIT_ERROR("EX0036", "用户权限编辑失败"),
    STACKER_IS_EXIST("EX0037", "堆垛机已存在"),
    STACKER_IS_NOT_EXIST("EX0038", "堆垛机不存在"),
    MENU_MOVE_TYPE_NOT_EXIST("EX0100", "菜单移动类型不存在"),
    MENU_IS_UP_CAN_NOT_MOVE("EX0101", "菜单处于顶层不可上移"),
    MENU_IS_DOWN_CAN_NOT_MOVE("EX0102", "菜单处于低层不可上移"),
    STOCK_IS_NOT_EMPTY_EXIST("EX0103","没有空闲货位可推荐"),
    STACKER_TASK_IN_NOT_EXIST("EX0104", "入库任务不存在"),
    STACKER_TASK_OUT_NOT_EXIST("EX0105", "出库任务不存在"),
    PRODUCT_IS_NO_STOCK("EX0106", "物料没有库存"),
    PRODUCT_CODE_IS_NULL("EX0107", "物料编号为空"),
    NO_STACKER_IS_FREE("EX0108", "没有空闲的堆垛机"),
    STACKER_TASK_OUT_PACE_NOT_EXIST("EX0109", "出库进度类型不存在"),
    STACKER_IS_NOT_FREE("EX0110", "堆垛机非空闲"),
    STACKER_TASK_IN_PACE_NOT_EXIST("EX0111", "入库进度类型不存在"),
    PUSH_ORDER_DETAIL_IS_NOT_EXIST("EX0112", "入库单详情不存在"),
    STOCK_IS_NOT_FREE("EX0113", "货位非空闲"),
    GET_PRODUCT_BYTE_ERROR("EX0114", "获取图片数据流失败"),
    STACKER_TASK_MOVE_NOT_EXIST("EX0115", "移库任务不存在"),
    STOCK_IS_NO_GOOD_EXIST("EX0116", "货位没有物品可移库"),
    PRODUCT_ONLY_CAN_BE_JPG_PNG("EX0117", "只能上传JPG/PNG类型的图片"),
    PRODUCT_SIZE_CAN_TOO_LAGER("EX0118", "图片大小不能超过1MB"),
    STACKER_TASK_NOT_ERROR("EX0119", "任务非中断状态"),
    STACKER_TASK_BUSY("EX0120", "系统任务繁忙"),
    PULL_ORDER_DETAIL_PRODUCT_EXIST("EX0121", "出库详情中已有此物料"),
    PUSH_ORDER_DETAIL_COUNT_TOO_SMALL("EX0122", "入库数量需大于零"),
    USER_NOT_HAVE_POWER("EX0123", "用户无权限"),
    LOGIN_METHOD_NOT_HAVE_POWER_ACCESS_METHODS("EX0124", "登录方式没有访问接口的权限"),
    STACKER_PARAM_IS_EXIST("EX0125", "堆垛机参数已存在"),
    STACKER_PARAM_IS_NOT_EXIST("EX0126", "堆垛机参数不存在"),
    STACKER_PARAM_TYPE_IS_NOT_EXIST("EX0127", "堆垛机参数类型不存在"),
    PRODUCT_EXCEL_ANALYSIS_ERROR("EX0128", "物料表格文件解析失败"),
    PRODUCT_CODE_NOT_EMPTY("EX0129", "物料编号不能为空"),
    PRODUCT_NAME_NOT_EMPTY("EX0130", "物料名称不能为空"),
    BATCH_NUMBER_NOT_EMPTY("EX0131", "批次号不能为空"),
    UNINT_COUNT_NOT_EMPTY("EX0132", "入库数量不能为空"),
    UNINT_COUNT_FORMAT_ERROR("EX0133", "入库数量格式异常"),
    OTHER_BATCH_NUMBER_EXIST("EX0134", "存在多批次物料"),
    HAVE_SAME_PRODUCT("EX0135", "存在同一物料"),
    PRODUCT_IS_NOT_SAME_WITH_BASE("EX0136", "物料编号、物料名称与物料基础信息不匹配"),
    PUSH_ORDER_BATCH_NUMBER_EXIST("EX0137", "入库单批次已存在"),
    PUSH_ORDER_DETAIL_PRODUCT_EXIST("EX0138", "入库单中已存在该物料"),
    PULL_ORDER_BATCH_NUMBER_EXIST("EX0139", "出库单批次已存在"),
    PULL_ORDER_HAVE_BOX_DETAIL("EX0140", "出库单详情已创建物料箱子"),
    PUSH_ORDER_HAVE_BOX_DETAIL("EX0141", "入库单详情已创建物料箱子"),
    COUNT_WEIGHT_IS_ALL_EMPTY("EX0142", "重量与数量不能都为空"),
    PRODUCT_WEIGHT_NEED_BIG_THEN_ZERO("EX0143", "物料单重需大于零"),
    PUSH_UNINT_COUNT_NEED_BIG_THEN_ZERO("EX0144", "入库数量需大于零"),
    PUSH_TOTAL_WEIGHT_NEED_BIG_THEN_ZERO("EX0145", "物料总重需大于零"),
    PUSH_ORDER_BOX_DETAIL_IS_NOT_EXIST("EX0146", "入库箱子详情不存在"),
    PUSH_ORDER_BOX_DETAIL_IS_NOT_UN_PUSH("EX0147", "入库箱子详情非未入库状态"),
    STACKER_PARAM_DETAIL_IS_NOT_EXIST("EX0148", "堆垛机参数不存在"),
    STACKER_PARAM_DETAIL_VALUE_ONLY_CAN_ZERO_OR_ONE("EX0149", "堆垛机参数值只能是 0 或 1 !"),
    PRODUCT_BOX_IS_BIND("EX0160", "该物料箱号已进行过绑定"),
    PRODUCT_BOX_IS_IN_THE_STOCK("EX0161", "库存中已有该物料箱号"),
    BELT_PARAM_IS_EXIST("EX0162","传送带参数已存在"),
    BELT_PARAM_TYPE_IS_NOT_EXIST("EX0163", "传送带参数类型不存在"),
    BELT_PARAM_IS_NOT_EXIST("EX0164", "传送带参数不存在"),
    BELT_IS_EXIST("EX0165", "传送带已存在"),
    BELT_IS_NOT_EXIST("EX0166", "传送带不存在"),
    BELT_PARAM_DETAIL_IS_NOT_EXIST("EX0167", "传送带参数不存在"),
    BELT_PARAM_DETAIL_VALUE_ONLY_CAN_ZERO_OR_ONE("EX0168", "传送带参数值只能是 0 或 1 !"),
    STOCK_IS_FREEZE("EX0169", "货位已冻结"),
    PULL_ORDER_DETAIL_CAN_NOT_EMPTY("EX0170", "出库单详情不能为空"),
    NOT_PULL_ORDER_DETAIL_CAN_PULL("EX0171", "没有可出库的详情单"),
    SCAN_IS_EXIST("EX0172", "扫码枪已存在"),
    SCAN_IS_NOT_EXIST("EX0173", "扫码枪不存在"),
    NO_STOCK_IS_FREE("EX0174", "没有空闲的货位"),
    SHELVE_NAME_AND_STOCK_CAN_NOT_ALL_EMPTY("EX0175", "货架与货位不能同时为空"),
    PRODUCT_IS_EXIST("EX0039", "物料已存在"),
    PRODUCT_IS_NOT_EXIST("EX0040", "物料不存在"),
    PRODUCT_DELETE_ERROR("EX0041", "物料删除失败"),
    PRODUCT_INSERT_ERROR("EX0042", "物料新增失败"),
    WAREHOUSE_IS_EXIST("EX0043", "仓库已存在"),
    WAREHOUSE_IS_NOT_EXIST("EX0044", "仓库不存在"),
    WAREHOUSE_DELETE_ERROR("EX0045", "仓库删除失败"),
    WAREHOUSE_INSERT_ERROR("EX0046", "仓库新增失败"),
    WAREHOUSEAREA_IS_EXIST("EX0043", "仓库区域已存在"),
    WAREHOUSEAREA_IS_NOT_EXIST("EX0044", "仓库区域不存在"),
    WAREHOUSEAREA_DELETE_ERROR("EX0045", "仓库区域删除失败"),
    WAREHOUSEAREA_INSERT_ERROR("EX0046", "仓库区域新增失败"),
    SHELVE_IS_EXIST("EX0047", "货架已存在"),
    SHELVE_IS_NOT_EXIST("EX0048", "货架不存在"),
    SHELVE_DELETE_ERROR("EX0049", "货架删除失败"),
    SHELVE_INSERT_ERROR("EX0050", "货架新增失败"),
    STOCK_IS_EXIST("EX0051", "货位已存在"),
    STOCK_IS_NOT_EXIST("EX0052", "货位不存在"),
    STOCK_DELETE_ERROR("EX0053", "货位删除失败"),
    STOCK_INSERT_ERROR("EX0054", "货位新增失败"),
    PULL_ORDER_IS_EXIST("EX0055", "出库单已存在"),
    PULL_ORDER_IS_NOT_EXIST("EX0056", "出库单不存在"),
    PULL_ORDER_DELETE_ERROR("EX0057", "出库单删除失败"),
    PULL_ORDER_INSERT_ERROR("EX0058", "出库单新增失败"),
    PUSH_ORDER_IS_EXIST("EX0059", "入库单已存在"),
    PUSH_ORDER_IS_NOT_EXIST("EX0060", "入库单不存在"),
    PUSH_ORDER_DELETE_ERROR("EX0061", "入库单删除失败"),
    PUSH_ORDER_INSERT_ERROR("EX0062", "入库单新增失败"),
    PULL_ORDER_DETAIL_IS_EXIST("EX0063", "出库单详情已存在"),
    PULL_ORDER_DETAIL_IS_NOT_EXIST("EX0063", "出库单详情不存在"),
    PULL_ORDER_DETAIL_DELETE_ERROR("EX0064", "出库单详情删除失败"),
    PULL_ORDER_DETAIL_INSERT_ERROR("EX0065", "出库单详情新增失败"),
    DEVICE_IS_EXIST("EX0066", "设备已存在"),
    DEVICE_IS_NOT_EXIST("EX0067", "设备不存在"),
    DEVICE_DELETE_ERROR("EX0068", "设备删除失败"),
    DEVICE_INSERT_ERROR("EX0069", "设备新增失败"),
    BASEWAGEACCOUNT_IS_EXIST("EX0070", "工资基础已存在"),
    BASEWAGEACCOUNT_IS_NOT_EXIST("EX0071", "工资基础不存在"),
    BASEWAGEACCOUNT_DELETE_ERROR("EX0072", "工资基础删除失败"),
    BASEWAGEACCOUNT_INSERT_ERROR("EX0073", "工资基础新增失败"),
    PURCHASE_ORDER_IS_EXIST("EX0070", "采购单已存在"),
    PURCHASE_ORDER_IS_NOT_EXIST("EX0071", "采购单不存在"),
    PURCHASE_ORDER_DELETE_ERROR("EX0072", "采购单删除失败"),
    PURCHASE_ORDER_INSERT_ERROR("EX0073", "采购单新增失败"),
    PURCHASE_ORDER_NOT_ALLOW_EDIT_ERROR("EX0074", "采购单不可编辑"),
    PICKINTG_STOCK_WAGE_IS_EXIST("EX0075", "拣货单已存在"),
    PICKINTG_STOCK_WAGE_IS_NOT_EXIST("EX0076", "拣货单不存在"),
    PICKINTG_STOCK_WAGE_DELETE_ERROR("EX0077", "拣货单删除失败"),
    PICKINTG_STOCK_WAGE_INSERT_ERROR("EX0078", "拣货单新增失败"),
    DEVICE_ALARM_IS_EXIST("EX0079", "报警已存在"),
    DEVICE_ALARM_IS_NOT_EXIST("EX0080", "报警不存在"),
    DEVICE_ALARM_DELETE_ERROR("EX0081", "报警删除失败"),
    DEVICE_ALARM_INSERT_ERROR("EX0082", "报警新增失败"),;
    private String code;
    private String message;

    ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
